﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StockTakeVerify.aspx.cs" Inherits="StockTake_StockTakeVerify" %>

<%@ Register Assembly="WX.WMS.Common" Namespace="WX.WMS.Common" TagPrefix="cc1" %>
<%@ Import Namespace="WX.WMS.DataModel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>核对盘点</title>
    <link href="../css/base.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="../JavaScript/jq.js"></script>
        <script type="text/javascript" src="../JavaScript/ymPrompt.js"></script>  
        <script type="text/javascript" src="../JavaScript/AjaxJS.js"></script>
            <script type="text/javascript">
        function yinyong_onclick() {

            var Url="NQ_Verify_CommonWindow.aspx";
            var result=window.showModalDialog(Url,'','dialogWidth:300px;status:no;dialogheight:300px');  
            if(result!=null)
            {          
               var item=document.getElementById("<%=Result.ClientID %>");
               item.value=result;
               return true;
            }
            return false;
        }   	
      </script>
      <style type="text/css">
            .hidden
            {
            	 display:none;
            	}
                            .style1
                            {
                                width: 87px;
                            }
                            .style2
                            {
                                width: 140px;
                            }
                            .style3
                            {
                                height: 26px;
                            }
                            .style4
                            {
                                width: 140px;
                                height: 26px;
                            }
                            .style5
                            {
                                width: 87px;
                                height: 26px;
                            }
                            .style6
                            {
                                width: 120px;
                                height: 26px;
                            }
            </style>
</head>
<body>
    <form id="form1" runat="server">
    <div  style="BORDER-RIGHT: #a4d5e3 1px solid; margin:20px auto; width:750px; BORDER-TOP: #a4d5e3 1px solid; BACKGROUND: url(../images/content_bg1.gif) repeat-x 50% bottom; BORDER-LEFT: #a4d5e3 1px solid;  BORDER-BOTTOM: #a4d5e3 1px solid; ">
            <cc1:GridView ID="SearchResult" runat="server" AutoGenerateColumns="False" 
                BackColor="White" AllowPaging="True"
                BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                Width="100%" DataKeyNames="ID"  
              CheckTemplateStyle="CheckTemplateStyle" EnableEmptyContentRender="True" 
              RadioBoxKeyName="radioId" SelectBoxKeyName="CheckItem" ShowRadioBox="False" 
              ShowSelectBox="False" 
              onpageindexchanging="SearchResult_PageIndexChanging" 
                onrowcreated="SearchResult_RowCreated" 
                onrowdatabound="SearchResult_RowDataBound" 
                onrowediting="SearchResult_RowEditing"   >
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <Columns>
                     <asp:BoundField DataField="OVERAGE" HeaderText="溢出" SortExpression="OVERAGE" />
                     <asp:TemplateField HeaderText="商品名称" SortExpression="T_SYS_ROLE.NAME">
                     <ItemTemplate>
                      <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.T_PRODUCT.NAME%>
                     </ItemTemplate>                 
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="条形码" SortExpression="T_STORE.T_PRODUCT_DETAIL.BAR_CODE">
                     <ItemTemplate>
                      <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.BAR_CODE%>
                     </ItemTemplate>                 
                     </asp:TemplateField>                          
                     <asp:TemplateField HeaderText="位置" SortExpression="T_STORE.T_FLOOR.FloorName">
                         <ItemTemplate>
                         <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_FLOOR.T_STOCK_AREA.T_STOCK.STOCK_NAME
                            + "-->" + ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_FLOOR.T_STOCK_AREA.AREA_NAME
                            + "-->" + ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_FLOOR.FloorName%>
                         </ItemTemplate>                 
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="型号" SortExpression="T_STORE.T_PRODUCT_DETAIL.MODEL">
                     <ItemTemplate>
                         <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.MODEL%>
                     </ItemTemplate>                 
                     </asp:TemplateField> 
                     <asp:TemplateField HeaderText="规格" SortExpression="T_STORE.T_PRODUCT_DETAIL.STANDARD">
                     <ItemTemplate>
                        <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.STANDARD%>
                     </ItemTemplate>                 
                     </asp:TemplateField>        
                     <asp:TemplateField HeaderText="柜号" SortExpression="T_STORE.T_PRODUCT_DETAIL.PACKET_NO">
                     <ItemTemplate>
                      <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.PACKET_NO%>
                     </ItemTemplate>                 
                     </asp:TemplateField>             
                                                                                        
                    <asp:CommandField  EditText="&lt;img border=0 src=../images/Verify.gif /&gt;" ShowEditButton="true" HeaderText="核对"/>                    

                </Columns>
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
            </cc1:GridView>
      </div>
      
      <%--<div  style="BORDER-RIGHT: #a4d5e3 1px solid; margin:20px auto; width:750px; BORDER-TOP: #a4d5e3 1px solid; BACKGROUND: url(../images/content_bg1.gif) repeat-x 50% bottom; BORDER-LEFT: #a4d5e3 1px solid;  BORDER-BOTTOM: #a4d5e3 1px solid; ">
            <cc1:GridView ID="gvOverRageList" runat="server" AutoGenerateColumns="False" 
                BackColor="White" AllowPaging="True"
                BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                Width="100%" DataKeyNames="ID"  
              CheckTemplateStyle="CheckTemplateStyle" EnableEmptyContentRender="True" 
              RadioBoxKeyName="radioId" SelectBoxKeyName="CheckItem" ShowRadioBox="False" 
              ShowSelectBox="False" >
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <Columns>
                     <asp:TemplateField HeaderText="商品名称" SortExpression="T_SYS_ROLE.NAME">
                     <ItemTemplate>
                      <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.T_PRODUCT.NAME%>
                     </ItemTemplate>                 
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="条形码" SortExpression="T_STORE.T_PRODUCT_DETAIL.BAR_CODE">
                     <ItemTemplate>
                      <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.BAR_CODE%>
                     </ItemTemplate>                 
                     </asp:TemplateField>                          
                     <asp:TemplateField HeaderText="位置" SortExpression="T_STORE.T_FLOOR.FloorName">
                         <ItemTemplate>
                         <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_FLOOR.T_STOCK_AREA.T_STOCK.STOCK_NAME
                            + "-->" + ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_FLOOR.T_STOCK_AREA.AREA_NAME
                            + "-->" + ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_FLOOR.FloorName%>
                         </ItemTemplate>                 
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="库存大件数" SortExpression="T_STORE.T_PRODUCT_DETAIL.MODEL">
                     <ItemTemplate>
                         <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.MODEL%>
                     </ItemTemplate>                 
                     </asp:TemplateField> 
                     <asp:TemplateField HeaderText="规格" SortExpression="T_STORE.T_PRODUCT_DETAIL.STANDARD">
                     <ItemTemplate>
                        <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.STANDARD%>
                     </ItemTemplate>                 
                     </asp:TemplateField>        
                     <asp:TemplateField HeaderText="柜号" SortExpression="T_STORE.T_PRODUCT_DETAIL.PACKET_NO">
                     <ItemTemplate>
                      <%# ((T_STOCKTAKE_DETAIL)Container.DataItem).T_STORE.T_PRODUCT_DETAIL.PACKET_NO%>
                     </ItemTemplate>                 
                     </asp:TemplateField>             
                                                                                        
                    <asp:CommandField  EditText="&lt;img border=0 src=../images/Verify.gif /&gt;" ShowEditButton="true" HeaderText="核对"/>                    

                </Columns>
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
            </cc1:GridView>
      </div>--%>
      <asp:LinkButton ID="UpdateDetail" runat="server" onclick="LinkButton1_Click"  CssClass="hidden">LinkButton</asp:LinkButton>
      <asp:TextBox ID="Result" runat="server" Text=""  CssClass="hidden" ></asp:TextBox>
    </form>
</body>
</html>
